package com.chuqiyun.authorization.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chuqiyun.authorization.entity.Product;

/**
 * 产品(Product)表服务接口
 *
 * @author mryunqi
 * @since 2023-04-19 17:07:26
 */
public interface ProductService extends IService<Product> {

    /**
     * @Author: mryunqi
     * @Description: 获取单个产品信息
     * @DateTime: 2023/4/19 23:00
     * @Params: String name 产品名
     * @Return Product
     */
    Product getProduct(String name);

    /**
     * @Author: mryunqi
     * @Description: 根据授权码查询授权信息
     * @DateTime: 2023/5/13 11:53
     * @Params: String code 在线授权码
     * @Return Product
     */
    Product getProductByCode(String code);
}

